package com.cqdev.washer.infra.entity;

import java.util.Date;

public class DbConfig {

    public DbConfig() {
    }

    public DbConfig(Long id, String type, String url, String dbName, String username, String password, Date gmtCreate, Date gmtModified) {
        this.id = id;
        this.type = type;
        this.url = url;
        this.dbName = dbName;
        this.username = username;
        this.password = password;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
    }

    private Long id;

    private String type;

    private String url;

    private String dbName;

    private String username;

    private String password;

    private Date gmtCreate;

    private Date gmtModified;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName == null ? null : dbName.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}